#include <stdio.h>
int main(int argc,char *argv[])
{
	int i,j,k;
	int a,b,c;
	int array[9];
	int temp;
	for(i=100;i<=333;i++)
	{
		a = i;
		b = 2*i;
		c = 3*i;
		array[0] = a%10;
		a = a/10;
		array[1] = a%10;
		a = a/10;
		array[2] = a%10;
		a = a/10;
		array[3] = b%10;
		b = b/10;
		array[4] = b%10;
		b = b/10;
		array[5] = b%10;
		b = b/10;
		array[6] = c%10;
		c = c/10;
		array[7] = c%10;
		c = c/10;
		array[8] = c%10;
		c = c/10;
		for(j=0;j<8;j++)
		{
			for(k=0;k<8-j;k++)
			{
				if(array[k]>array[k+1])
				{
					temp = array[k];
					array[k] = array[k+1];
					array[k+1] = temp;
				}
			}
		}
		for(j=0;j<8;j++)
		{
			if(array[j]==array[j+1]||array[j]==0||array[j+1]==0)
			{
				break;
			}
		}
		if(j!=8)
		{
			continue;
		}
		else
		{
			printf("%d %d %d\n",i,2*i,3*i);
		}
	}
	return 0;
}
